﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace HMS.BL
{
    public class icon
    {
        public string image { get; set; }
        public icon() { }
        public icon(string image)
        {
            this.image = image;
        }
    }
    public class NodeType
    {
        public const int max_children = -1;
        public const int max_depth = -1;
        public List<string> valid_children { get; set; }
        public icon icon { get; set; }

        [DefaultValue(true)]
        public bool delete_node { get; set; }
        [DefaultValue(true)]
        public bool remove { get; set; }
        [DefaultValue(true)]
        public bool move_node { get; set; }
        [DefaultValue(true)]
        public bool start_drag { get; set; }

        public NodeType() { }

        public NodeType(List<string> valid_children, icon icon)
        {
            this.valid_children = valid_children;
            this.icon = icon;
            this.delete_node = true;
            this.remove = true;
            this.move_node = true;
            this.start_drag = true;
        }

        public NodeType(List<string> valid_children, icon icon, bool delete_node, bool remove, bool move_node, bool start_drag)
        {
            this.valid_children = valid_children;
            this.icon = icon;
            this.delete_node = delete_node;
            this.remove = remove;
            this.move_node = move_node;
            this.start_drag = start_drag;
        }

    }
}
